﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            DriveInfo driveInfo = new DriveInfo("D");
            Console.WriteLine("名称：" + driveInfo.Name);
            Console.WriteLine("类型：" + driveInfo.DriveType);
            Console.WriteLine("文件格式：" + driveInfo.DriveFormat);
            Console.WriteLine("可用空间大小：" + driveInfo.TotalFreeSpace);
            Console.WriteLine("总空间大小：" + driveInfo.TotalSize);
            Console.WriteLine("卷标：" + driveInfo.VolumeLabel);
            Console.WriteLine("根目录：" + driveInfo.RootDirectory);
        }
    }
}
